#include "drv_e53_eeprom.h"
#include "dev_e53_eeprom.h"

void eeprom_drv_init(void)
{
    eeprom_dev.e53_eeprom_init();
}

uint8_t eeprom_read_byte(uint16_t addr, uint8_t *dat)
{
    return eeprom_dev.e53_eeprom_read_byte(addr, dat);
}

uint8_t eeprom_write_byte(uint16_t addr, uint8_t *dat)
{
    return eeprom_dev.e53_eeprom_write_byte(addr, dat);
}

uint8_t eeprom_read_amount_byte(uint16_t addr, uint8_t *recv_buf, uint16_t size)
{
    return eeprom_dev.e53_eeprom_read_amount_byte(addr, recv_buf, size);
}

uint8_t eeprom_write_amount_byte(uint16_t addr, uint8_t *dat, uint16_t size)
{
    return eeprom_dev.e53_eeprom_write_amount_byte(addr, dat, size);
}


e53_eeprom eeprom_drv =
{
    .e53_eeprom_init							=	eeprom_drv_init,
    .e53_eeprom_read_byte					=	eeprom_read_byte,
    .e53_eeprom_write_byte 				= eeprom_write_byte,
    .e53_eeprom_read_amount_byte	=	eeprom_read_amount_byte,
    .e53_eeprom_write_amount_byte	=	eeprom_write_amount_byte,
};

